function myNew(construct, ...args) {
  const newObj = new Object(construct.prototype);
  console.log(construct, construct.prototype);
  const res = construct.apply(newObj, [...args]);
  return typeof res === "object" ? res : newObj;
}
function percon(name, age) {
  this.name = name;
  this.age = age;
}

let d = myNew(percon, 23, 42);

console.log(d);
//获取原型，接着
//construct.prototype : { a: b: }
